import jieba
from pypinyin import lazy_pinyin,Style

seg_list = jieba.cut('我爱人工智能')
print(' '.join(seg_list))

a = lazy_pinyin('代码医生工作室，习惯成就精品',style=Style.TONE3)
print(a)